﻿using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;

namespace CRM.Authorization.Role
{
    public class Requirement : IAuthorizationRequirement
    {

        public IEnumerable<string> Roles { get; }
        public Requirement(params string[] roles)
        {
            Roles = roles ?? throw new ArgumentNullException(nameof(roles));
        }
    }
}
